raster image area calculation